<template>
  <view class="my">
    <hnav title="我的"></hnav>
    <view class="banner">
      <image src="/static/img/bg.png" mode=""></image>

      <view class="panel">
        <view class="tx">
          <image src="/static/img/avatar.png" mode=""></image>
        </view>
        <view class="" style="text-align: center; margin-top: 100px">
          我的
        </view>
      </view>
    </view>

    <view class="mnav">
      <view class="mit" v-for="(v, k) in nav" :key="k">
        <view class="">
          <uni-icons size="26" :type="v.icon"></uni-icons>
        </view>
        <view class="">
          {{ v.txt }}
        </view>
      </view>
    </view>

    <view class="footer">
      <image src="/static/img/join.png" mode=""></image>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      nav: [
        { txt: "我的收藏", icon: "star" },
        { txt: "我的出租", icon: "shop" },
        { txt: "看房记录", icon: "eye" },
        { txt: "成为房主", icon: "home" },
        { txt: "个人资料", icon: "person" },
        { txt: "联系我们", icon: "phone" },
      ],
    };
  },
  methods: {},
};
</script>

<style>
.banner {
  height: 250px;
  position: relative;
  background: #c0c0c0;
}
.banner > image {
  width: 100%;
  height: 100%;
}
.panel {
  width: 80%;
  height: 150px;
  /* border: 1px solid red; */
  left: 50%;
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  background: white;
  border-radius: 5px;
  box-shadow: 2px 2px 25px black;
}
.tx {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -50px;
  box-shadow: 2px 2px 25px black;
  overflow: hidden;
}
.tx > image {
  width: 100%;
  height: 100%;
}
.mnav {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 15px;
}
.mit {
  width: 30%;
  height: 80px;
  border: 1px solid #c0c0c0;
  margin: 5px;
  border-radius: 5px;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.footer {
  height: 100px;
  margin-top: 15px;
}
.footer > image {
  width: 100%;
  height: 100%;
}
</style>
